package zhr.chapter12;

public class Example12_4 {
    public static void main(String[] args) {
        System.out.println("主线程开始运行");
        SubThread4 th1=new SubThread4();
        th1.setName("Thread1");
        th1.setPriority(Thread.MIN_PRIORITY);
        SubThread4 th2=new SubThread4();
        th2.setName("Thread2");
        th2.setPriority(Thread.MAX_PRIORITY);
        th1.start();
        th2.start();
        System.out.println("主线程运行结束");
    }
}
